<?php /* Smarty version Smarty-3.1.6, created on 2013-04-07 07:49:56
         compiled from "/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/SaleOrder/index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:5419614405161090417f4f7-63237489%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '505333f303e43ded4061de5609b7b3a1468019c9' => 
    array (
      0 => '/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/SaleOrder/index.tpl',
      1 => 1364183646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '5419614405161090417f4f7-63237489',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'lang' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_5161090425330',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5161090425330')) {function content_5161090425330($_smarty_tpl) {?><?php if (!is_callable('smarty_function_wz')) include '/home/zmx/erp2.1/DzhPHP/FrameWork/Extend/Vendor/Smarty/plugins/function.wz.php';
if (!is_callable('smarty_function_note')) include '/home/zmx/erp2.1/DzhPHP/FrameWork/Extend/Vendor/Smarty/plugins/function.note.php';
?><?php echo smarty_function_wz(array(),$_smarty_tpl);?>

<form method="POST" action="<?php echo U("SaleOrder/".(@ACTION_NAME));?>
" id="search_form">
__SEARCH_START__
		<dl>
		   		<dt>
					<label ><?php echo $_smarty_tpl->tpl_vars['lang']->value['sale_no'];?>
：</label>
					<input type="text" name="sale_order[like][sale_order_no]" url="<?php echo U('/AutoComplete/saleOrderNo');?>
" jqac>
            	</dt>
            	<dt>
					<label><?php echo $_smarty_tpl->tpl_vars['lang']->value['client_name'];?>
：</label>
					<input type='hidden' name="sale_order[query][client_id]">
					<input type='text' url="<?php echo U('/AutoComplete/client');?>
" jqac>
            	</dt>    
				<dt>
					<label><?php echo $_smarty_tpl->tpl_vars['lang']->value['product_no'];?>
：</label>
					<input type='hidden' name="sale_order_detail[query][product_id]">
             		<input type='text' url="<?php echo U('/AutoComplete/product');?>
" jqac>
            	</dt>            			  
            	<dt>
					<label><?php echo $_smarty_tpl->tpl_vars['lang']->value['sale_date_from'];?>
：</label>
						<input type="text" name="sale_order[date][from_order_date]" value="<?php echo $_POST['date']['from_order_date'];?>
" class="Wdate spc_input_data" onClick="WdatePicker()"/>
							<label><?php echo $_smarty_tpl->tpl_vars['lang']->value['sale_date_to'];?>
</label>
						<input type="text" name="sale_order[date][to_order_date]" value="<?php echo $_POST['date']['to_order_date'];?>
" class="Wdate spc_input_data" onClick="WdatePicker()"/>
            	</dt>  
            	<?php if (C('sale.relation_sale_follow_up')==1){?>
            	<dt>
					<label><?php echo $_smarty_tpl->tpl_vars['lang']->value['sale_order_state'];?>
：</label>
					<?php if (C('delivery.relation_predelivery')==1){?>
            		<?php echo smarty_function_select(array('data'=>C('SALE_ORDER_STATE'),'name'=>'sale_order[query][sale_order_state]','id'=>'sale_order_state','value'=>($_POST['query']['sale_order_state']),'combobox'=>"1"),$_smarty_tpl);?>

            		<?php }else{ ?>
            		<?php echo smarty_function_select(array('data'=>C('SALE_ORDER_STATE2'),'name'=>'sale_order[query][sale_order_state]','id'=>'sale_order_state','value'=>($_POST['query']['sale_order_state'])),$_smarty_tpl);?>

            		<?php }?>
            	</dt>   
            	<?php }?>         
		</dl>	
		<input type="hidden" name="date_key" value="2">
__SEARCH_END__
</form>
<?php if (C('sale.relation_sale_follow_up')==1){?>
<?php echo smarty_function_note(array('tabs'=>"saleOrder",'content'=>"<ul><li>".($_smarty_tpl->tpl_vars['lang']->value['comments'])."：</li><li class='bzyellow'></li><li>".($_smarty_tpl->tpl_vars['lang']->value['mf_tip'])."</li></ul>"),$_smarty_tpl);?>

<?php }else{ ?> 
<?php echo smarty_function_note(array('tabs'=>"saleOrder",'content'=>"<ul><li></li><li></li></ul>"),$_smarty_tpl);?>

<?php }?>
<div id="print" class="width98">
<?php echo $_smarty_tpl->getSubTemplate ("SaleOrder/list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

</div> <?php }} ?>